﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using com.creditos.bl.interfaces.liclUtil;
using com.creditos.be.liclUtil;
using com.creditos.dao.sql.liclUtil;

namespace com.creditos.bl.liclUtil
{
    [ServiceBehavior(Name = "ParametroBL",
 Namespace = "http://com.creditos.bl.interfaces.liclUtil",
 ConcurrencyMode = ConcurrencyMode.Multiple,
 InstanceContextMode = InstanceContextMode.PerSession,
 IncludeExceptionDetailInFaults = true)]
    public class ParametroBL : IParametroBL
    {

        #region IParametroBL Members

        public List<ParametroBE> Listar(ParametroBE oParametroBE)
        {
            try
            {
                List<ParametroBE> lstParametro = new List<ParametroBE>();
                lstParametro = ParametroDAO.Listar(oParametroBE);
                return lstParametro;

            }
            catch (Exception oEx)
            {
                FaultReason oErr = new FaultReason(oEx.Message);
                throw new FaultException(oErr);
            }
        }

        #endregion
    }
}
